// router/index.ts
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routers: RouteRecordRaw[] = [
  {
    path: '/home',
    alias: '/',
    name: '第一个页面',
    component: () => import('@/views/home.vue'),
  },
  {
    path: '/about',
    name: '第二个页面',
    component: () => import('@/views/about.vue'),
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes: routers,
})

export default router
